import {
  Base
} from 'base.js';

class MarketingModel extends Base {
  constructor() {
    super();
  }
  /** 
   *  查询会员奖品碎片列表
   */
  fragmentList(data) {
    return this.promiseRequest('/wechat/marketing/activity/member/fragment/list', data, true)
  };
  /** 
   *  查询集卡活动id
   */
  getCardActivityId(data) {
    return this.promiseRequest('/wechat/marketing/activity/unlogin/query', data)
  };
  /** 
   *  查询单个奖品该会员拥有的碎片详情
   */
  fragmentDetail(data) {
    return this.promiseRequest('/wechat/marketing/activity/member/award/fragment/detail', data)
  };
  /** 
   *  查询会员已点亮奖品列表
   */
  lightingList(data) {
    return this.promiseRequest('/wechat/marketing/activity/member/lighting/list', data, true)
  };
  /** 
   *  查询单个会员已获得的奖品详情
   */
  verificationGet(data) {
    return this.promiseRequest('/wechat/marketing/activity/member/verification/get', data, '', true)
  };
  /** 
   *  会员扫码抽奖
   */
  memberDraw(data) {
    return this.promiseRequest('/wechat/marketing/activity/member/draw', data)
  };
  /** 
   *  会员点亮奖品
   */
  memberLight(data) {
    return this.promiseRequest('/wechat/marketing/activity/member/light', data)
  };
  /**
   * 刷卡器-启动游戏
   */
  firmwareGoGame(data) {
    return this.promiseRequest('/wechat/machine/game_start', data)
  };
  /** 
   *  远程投币支付下单
   */
  remoteCoinCreate(data) {
    return this.promiseRequest('/wechat/machine/remote/coin/create', data)
  }
   /** 
   *  远程投币支付下单确认
   */
  machinePayConfirm(data) {
    return this.promiseRequest('/wechat/machine/pay/confirm', data, false, true)
  }
  /**
   * 扫描-刷卡器-几币几局
   */
  firmwareGearList(data) {
    return this.promiseRequest('/wechat/machine/play/can', data, '', true)
  };
  /** 
   * 集卡全国活动查看活动详情
   */
  memberNationalDetail(data) {
    return this.promiseRequest('/wechat/marketing/activity/national/detail', data)
  }
};
export {
  MarketingModel
}